package com.java.io.file;

import java.io.File;

public class DeleteFile {

	/*
	 * 删除一个文件
	 */
	public static void main(String[] args) {
		String filePath = "D:" + File.separator + "fileTest.txt";
		File f = new File(filePath);
		if(f.exists()){
			f.delete();
		} else {
			System.out.println("文件不存在！");
		}
	}
}
